-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add standard name metadata to most EAMxx output variables #3105
Conversation
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce checks passingWonderful, this rule succeeded.Make sure that checks are not failing on the PR, and reviewers approved
|
{"aero_g_sw" , "asymmetry_factor_of_ambient_aerosol_particles"}, | ||
{"pbl_height" , "atmosphere_boundary_layer_thickness"}, | ||
{"precip_liq_surf_mass" , "atmosphere_mass_content_of_liquid_precipitation"}, | ||
{"cldlow" , "cloud_area_fraction"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these really all the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm not sure. I'm pretty sure I only grabbed standard_names I was able to confirm either on the CF website or from EAM. Let me check again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I found better standard names with a little more digging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsolicited review: wouldn't we prefer to have this dict-type info in a yaml-like file somewhere in this folder (or elsewhere) instead of having it be part of the cpp code? I believe we could then just read the yaml file (or similar) to construct the map.
Of course, we can do that later, not necessarily in this PR ... I think it is tidier in the long run to have info like this stored in standalone files ...
I like this idea. I could probably make that a part of this PR. @bartgol , do you have any thoughts on this approach? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Maybe we could change "long_name" to "description", since having a short, a long, and a standard name seem too much...
@jeff-cohere and I were working a while ago on a tool to enable this. You can see we have two databases in |
Yes! But only if I get to work with you and @jeff-cohere once we get to it (in a few weeks/months) ;) |
ccdcfb4
to
42e1119
Compare
42e1119
to
68c46f4
Compare
68c46f4
to
b81521f
Compare
6318f41
to
db5b35d
Compare
This commit brings EAMxx into CF-Compliance by adding `standard_name` metadata for a subset of the EAMxx output variables that have one.
b81521f
to
d44a616
Compare
@bartgol uh oh... mergify merges without up-to-date approval, nice?! |
I'm guessing that pushing new commits is not invalidating the check |
It appears that mergify does indeed that: so long as the PR was approved "at some point", that check passed. There's a mergify action that allows to dismiss reviews though. I want to see if we can use it to dismiss stale reviews. If not, then byebye mergify |
I think there's a github branch protection setting that might help: "Dismiss stale pull request approvals when new commits are pushed. New reviewable commits pushed to a matching branch will dismiss pull request review approvals." |
I believe we have this already in this repo... |
This commit brings EAMxx into CF-Compliance by adding
standard_name
metadata for a subset of the EAMxx output variables that have one.Fixes #700